package com.adfm.ws;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import com.adfm.bo.ExpeditionBo;

@WebService
public class ExpeditionWS{

	//DI via Spring
	ExpeditionBo expeditionBo;

	@WebMethod(exclude=true)
	public void setExpeditionBo(ExpeditionBo expeditionBo) {
		this.expeditionBo = expeditionBo;
	}

	@WebMethod(operationName="validerStock")
	public String validerStock(@WebParam(name="idBonCommande") Long idBonCommande) {

		return expeditionBo.validerStock(idBonCommande);
		
	}
	
	@WebMethod(operationName="initialiserEnvoiCommande")
	public String initialiserEnvoiCommande(@WebParam(name="idBonCommande") Long idBonCommande) {
		
		return expeditionBo.initialiserEnvoiCommande(idBonCommande);
		
	}
	
	@WebMethod(operationName="annulerBonCommande")
	public String annulerBonCommande(@WebParam(name="idBonCommande") Long idBonCommande) {
		
		return expeditionBo.annulerBonCommande(idBonCommande);
		
	}
 
}